package ooday01;

public class ExtendsTest {
    public static void main(String[] args) {
        Student zg = new Student();
        zg.name = "张光";
        zg.age = 19;
        zg.addreass = "黑龙江";
        zg.className = "Jsd2506";
        zg.stuId = "001";
        zg.eat();
        zg.sleep();
        zg.sayHi();
        zg.study();

        Student ll = new Student("李林",20,"吉林","Jsd2506","002");
        ll.eat();
        ll.sleep();
        ll.sayHi();
        ll.study();

        Teacher zl = new Teacher();
        zl.name = "赵亮";
        zl.age = 30;
        zl.addreass = "辽宁";
        zl.salary = 8000.0;
        zl.eat();
        zl.sleep();
        zl.sayHi();
        zl.teach();

        Teacher zk = new Teacher("赵康",35,"甘肃",5000.0);
        zk.eat();
        zk.sleep();
        zk.sayHi();
        zk.teach();

        Doctor zw = new Doctor();
        zw.name = "张伟";
        zw.age = 40;
        zw.addreass = "新疆";
        zw.title = "主任医师";
        zw.eat();
        zw.sleep();
        zw.sayHi();
        zw.cut();

        Doctor wpf = new Doctor("王鹏飞",50,"西藏","副院长");
        wpf.eat();
        wpf.sleep();
        wpf.sayHi();
        wpf.cut();


        Person p = new Doctor();
        p.name = "屁";
        p.age = 1;
        p.addreass = "屁";
        p.eat();
        p.sleep();
        p.sayHi();
        //p.className = "Jsd2506";
    }
}
